<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>

<s:layout-render name="/frontend/layout.jsp">
    <s:layout-component name="content">
        <s:useActionBean beanclass="cz.muni.fi.pa165.travelagency.web.frontend.TourActionBean" var="actionBean"/>
            <div id="package-tour-detail-box">

                <center>
                    <h2>
                        <c:out value="${actionBean.tour.name}"/>
                    </h2>
                </center>
                
                <div><span class="pt-label">
                        <f:message key="ptour.date"/>: </span>
                        <f:formatDate value="${actionBean.tour.date}" pattern="dd. MM. yyyy" />
                </div>
                <div><span class="pt-label">
                        <f:message key="tour.duration"/>: </span>
                        <c:out value="${actionBean.tour.duration}"/> h.
                </div>
                <div><span class="pt-label">
                        <f:message key="ptour.capacity"/>: </span>
                        <c:out value="${actionBean.tour.capacity}"/>
                </div>
                <div><span class="pt-label">
                        <f:message key="ptour.description"/>: </span>
                        <c:out value="${actionBean.tour.description}"/>
                </div>
                <div><span class="pt-label">
                        <f:message key="ptour.pricePerPerson"/>: </span>
                        <c:out value="${actionBean.tour.pricePerPerson}"/>
                </div>
                
            </div>
    </s:layout-component>
</s:layout-render>
                